package com.demo.webapp.ui.displayer;

import java.util.Collection;
import java.util.List;

import com.demo.webapp.ui.ComponentBase;
import com.demo.webapp.ui.DisplayerConfig;

/**
 * 
 * @author ryuu.kk
 *
 */
public interface DisplayerMapping extends java.io.Serializable {

	/**
	 * 
	 * @param model
	 * @return
	 */
	boolean support(ComponentBase model);
	
	Displayer<?> get(String name);
	
	void put(Displayer<?> displayer);
	
	boolean containsKey(String key);
	
	Collection<Displayer<?>> getAll();
	
	List<DisplayerConfig> getDisplayerConfig();

	void addDisplayerConfig(DisplayerConfig displayerConfig);
}
